package xq.gwt.mvc.model;

import java.io.Serializable;

@SuppressWarnings("serial")
public abstract class AbstractCommandModel implements CommandModel, Serializable {
	protected BooleanPropertyModel enabled = new BooleanPropertyModel();
	
	public AbstractCommandModel(){
		enabled.setValue(true);
	}
	
	@Override
	public String getCaption() {		
		return this.getClass().getName();
	}

	@Override
	public String getName() {		
		return this.getClass().getName();
	}

	@Override
	public BooleanPropertyModel isEnabled() {		
		return enabled;
	}

	@Override
	public String getFeedback() {		
		return null;
	}

}
